FROM openjdk:11-jdk-slim as build

RUN mkdir -p /ssadmin-server
WORKDIR /ssadmin-server

# 复制 JAR 文件到容器中
COPY ./target/travelmood-0.0.1-SNAPSHOT.jar app.jar

# 设置环境变量
ENV TZ=Asia/Shanghai
ENV JAVA_OPTS="-Xmx1024m -Xms512m"  
ENV ARGS=""

# 暴露容器端口
EXPOSE 28080

CMD java $JAVA_OPTS -jar app.jar





